package com.gitee.swsk33.dbuser.service;

import com.gitee.swsk33.dbentity.dataobject.User;
import com.gitee.swsk33.dbentity.model.Result;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {

	/**
	 * 根据id查询用户
	 */
	Result<User> getById(int id);

	/**
	 * 查询全部用户
	 */
	Result<List<User>> getAll();

}